import request from '@/utils/request_zc'

export function login ({
  code,
  key,
  username,
  password
}) {
  return request({
    url: '/auth/login',
    method: 'post',
    data: {
      code,
      key,
      username,
      password
    }
  })
}

export function logout () {
  return request({
    url: '/auth/logout',
    method: 'post',
  })
}

export function captcha () {
  return request({
    url: '/auth/captcha',
    method: 'get',
  })
}

export function register () {
  return request({
    url: '/auth/register',
    method: 'post',
  })
}



